package com.example.service.impl;


import com.example.entity.Operate;
import com.example.mapper.OperateMapper;
import com.example.service.IOperateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tyhxzy
 * @since 2023-11-03
 */
@Service
public class OperateServiceImpl  implements IOperateService {
    @Autowired
    private OperateMapper operateMapper;
    @Override
    public int add(Operate operate) {
        return operateMapper.insert(operate);
    }

    @Override
    public Operate findCompany(Integer id) {
        return operateMapper.findCompany(id);
    }

    @Override
    public Operate findByIdOperate(Integer id) {
        return operateMapper.findByIdOperate(id);
    }

    @Override
    public int insert(Integer zid) {
        return operateMapper.InsertZid(zid);
    }

//    @Override
//    public int updateImg(Integer zid, String src) {
//        return operateMapper.updateImg(zid,src);
//    }

    @Override
    public int updateOp(Operate operate) {
        return operateMapper.updateOperate(operate);
    }
}
